﻿using UnityEngine;

namespace WoogiWorld.Event
{
    public class Hello : MonoBehaviour
    {
        // Start is called before the first frame update
        void Start()
        {

        }

        // Update is called once per frame
        void Update()
        {
            if (Input.anyKey)
            {
                EventDispatcher.Instance.DispatchEvent(EventType.anykey_input);

            }
            if (Input.GetKeyDown(KeyCode.A))
            {
                EventDispatcher.Instance.DispatchEvent(EventType.Notify, "你按下了键盘A");
                MonoEventDispatcher.Instance.DispatchEvent(EventType.Notify, "mono你按下了键盘A");
            }
        }
    }
}
